from google.appengine.ext import db

MAIN = 'Main'
NEWS = 'News'
SIDEBAR = 'Sidebar'
ABOUT = 'About'

WEB_CONTENT_TYPES = (
    MAIN,
    NEWS,
    SIDEBAR,
    ABOUT,
)

LOCALE = (
    'ua',
    'ru',
    'en',
)

class Product(db.Model):
    subject = db.StringProperty(required=True)
    description = db.StringProperty(required=False)
    image = db.StringProperty(required=False)

class WebContent(db.Model):
    subject = db.StringProperty(required = True)
    type = db.StringProperty(choices=WEB_CONTENT_TYPES)
    content = db.TextProperty(required=False)

class Photoalbum(db.Model):
    subject = db.StringProperty(required=True)


